package com.zhny.aiot.gd.sfj.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class FertilizerStoreEntry extends StoreEntity {
    @PropertyValue(alias = "增压泵状态",description = "增压泵状态",unit = "",icon= IconConstract.Other,variableType=VariableType.WaterPump,actions={
            @ActionValue(name=Operate.Open,commandCode="openPump",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closePump",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="readPumpState",eventType=EventType.Click)
    })
    private Boolean pumpStatus;
    @PropertyValue(alias = "通道A状态",description = "通道A状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openChannelA",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeChannelA",eventType=EventType.Click)
    })
    private Boolean channelAStatus;
    @PropertyValue(alias = "通道B状态",description = "通道B状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openChannelB",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeChannelB",eventType=EventType.Click)
    })
    private Boolean channelBStatus;
    @PropertyValue(alias = "通道C状态",description = "通道C状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openChannelC",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeChannelC",eventType=EventType.Click)
    })
    private Boolean channelCStatus;

    @PropertyValue(alias = "通道D状态",description = "通道D状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openChannelD",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeChannelD",eventType=EventType.Click)
    })
    private Boolean channelDStatus;
    @PropertyValue(alias = "搅拌桶A状态",description = "搅拌桶A状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openBucketA",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeBucketA",eventType=EventType.Click)
    })
    private Boolean bucketAStatus;
    @PropertyValue(alias = "搅拌桶B状态",description = "搅拌桶B状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openBucketB",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeBucketB",eventType=EventType.Click)
    })
    private Boolean bucketBStatus;
    @PropertyValue(alias = "搅拌桶C状态",description = "搅拌桶C状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openBucketC",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeBucketC",eventType=EventType.Click)
    })
    private Boolean bucketCStatus;

    @PropertyValue(alias = "搅拌桶D状态",description = "搅拌桶D状态",unit = "",icon=IconConstract.Other,variableType=VariableType.Passage,actions={
            @ActionValue(name=Operate.Open,commandCode="openBucketD",eventType=EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="closeBucketD",eventType=EventType.Click)
    })
    private Boolean bucketDStatus;
    @PropertyValue(alias = "PH值",description = "管道中PH值",unit = "",icon=IconConstract.PH,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="readMain",eventType=EventType.Click)
    })
    private Float ph;
    @PropertyValue(alias = "EC值",description = "管道中EC值",unit = "",icon=IconConstract.EC,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="readMain",eventType=EventType.Click)
    })
    private Float ec;
    @PropertyValue(alias = "压力值",description = "管道中压力值",unit = "mpa",icon=IconConstract.Pressure,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="readMain",eventType=EventType.Click)
    })
    private Float pressure;
}
